package com.fowo.api.model.platformshippinglogistics;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 平台仓物流 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class PlatformshippinglogisticsImportPo {

  /** 所属平台仓发货单 */
  @ExcelProperty("所属平台仓发货单")
  private String parentPlatformshippingShipmentCode;

  @ExcelIgnore
  @Schema(title = "所属平台仓发货单")
  private String parentPlatformshipping;

  /** 物流商单号 */
  @ExcelProperty("物流商单号")
  @Size(max = 50, message = "物流商单号长度不能超过50")
  private String logisticsCode;

  /** 跟踪号 */
  @ExcelProperty("跟踪号")
  @Size(max = 20, message = "跟踪号长度不能超过20")
  private String trackingCode;

  /** 物流费用 */
  @ExcelProperty("物流费用")
  @DecimalString(message = "物流费用小数格式不正确", label = "物流费用")
  private String logisticsPrice;

  /** 其他费用 */
  @ExcelProperty("其他费用")
  @DecimalString(message = "其他费用小数格式不正确", label = "其他费用")
  private String othPrice;

  /** 实际物流费用 */
  @ExcelProperty("实际物流费用")
  @DecimalString(message = "实际物流费用小数格式不正确", label = "实际物流费用")
  private String realityLogisticsPrice;

  /** 实际其他费用 */
  @ExcelProperty("实际其他费用")
  @DecimalString(message = "实际其他费用小数格式不正确", label = "实际其他费用")
  private String realityOthPrice;

  /** 其他费用备注 */
  @ExcelProperty("其他费用备注")
  @Size(max = 50, message = "其他费用备注长度不能超过50")
  private String remarks;
}
